package com.wsj.web.form.admin;


import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class AdminNewsSmallClassForm extends ActionForm {

	private static final long serialVersionUID = 4941581915692393136L;
	 private int scId;
     private int newsbigclassid;
     private String scClassname;
	public int getNewsbigclassid() {
		return newsbigclassid;
	}
	public void setNewsbigclassid(int newsbigclassid) {
		this.newsbigclassid = newsbigclassid;
	}
	public String getScClassname() {
		return scClassname;
	}
	public void setScClassname(String scClassname) {
		this.scClassname = scClassname;
	}
	public int getScId() {
		return scId;
	}
	public void setScId(int scId) {
		this.scId = scId;
	}
	@Override
	public void reset(ActionMapping arg0, HttpServletRequest arg1) {
		// TODO Auto-generated method stub
		scClassname = "";
	}
	@Override
	public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) {
		// TODO Auto-generated method stub
		ActionErrors actionErr = new ActionErrors();
		if(scClassname.equals(""))actionErr.add("scClassnameErr",new ActionMessage("scClassnameErr"));
		return actionErr;
	}

}
